package jetpack.com.pzl;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

/**
 * https://developer.android.google.cn/jetpack
 */
public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }


    public void click(View v) {
        Intent intent = new Intent();
        switch (v.getId()) {
            case R.id.btnJetpackWorkManager:
                intent.setClass(this, WorkManagerActivity.class);
                startActivity(intent);
                break;
            case R.id.btnArchitecture:
                intent.setClass(this, AndroidArchitectureComponentActivity.class);
                startActivity(intent);
                break;
        }

    }

}
